﻿import request from '/@/utils/request';
enum Api {
  AddynGps = '/api/ynGps/add',
  DeleteynGps = '/api/ynGps/delete',
  UpdateynGps = '/api/ynGps/update',
  PageynGps = '/api/ynGps/page',
  DetailynGps = '/api/ynGps/detail',
}

// 增加养护历史数据
export const addynGps = (params?: any) =>
	request({
		url: Api.AddynGps,
		method: 'post',
		data: params,
	});

// 删除养护历史数据
export const deleteynGps = (params?: any) =>
	request({
			url: Api.DeleteynGps,
			method: 'post',
			data: params,
		});

// 编辑养护历史数据
export const updateynGps = (params?: any) =>
	request({
			url: Api.UpdateynGps,
			method: 'post',
			data: params,
		});

// 分页查询养护历史数据
export const pageynGps = (params?: any) =>
	request({
			url: Api.PageynGps,
			method: 'post',
			data: params,
		});

// 详情养护历史数据
export const detailynGps = (id: any) =>
	request({
			url: Api.DetailynGps,
			method: 'get',
			data: { id },
		});


